using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityEmployeesUpdateExtend
{
		public static Employees ToUpdateEntity(this RequestEmployeesDto dto)
		{
			return new Employees
			{
				EId = dto.id,
				EName = dto.name,
				EGender = dto.gender,
				EBirthDate = dto.birthDate,
				EIdCardNumber = dto.idCardNumber,
				EPhoneNumber = dto.phoneNumber,
				EEmail = dto.email,
				EAddress = dto.address,
				EEmergencyContact = dto.emergencyContact,
				EPosition = dto.position,
				EHireDate = dto.hireDate,
				EStatus = dto.status,
				ERemark = dto.remark,
			};
		}
	}
}
